<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>

<xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>

<xsl:template match='nbsp' name='nbsp'>
<xsl:text disable-output-escaping='yes'>&amp;nbsp;</xsl:text>
</xsl:template>


<xsl:template match="toApprove">

<xsl:comment>
0 - have just been created
1 - is public
2 - have been denyed authorization
3 - is waiting for authorization
</xsl:comment>

<table bgcolor="#EEEEEE" class="body_10px" border="0" cellspacing="0" cellpadding="3" width="100%">
<tr height="25px">
<td class="dotlin" colspan="8"><b>Nuove attivita' in attesa di approvazione</b></td></tr>
<tr class="body">
<td><b>Nickname</b></td>
<!-- <td><b>email</b></td> -->
<td colspan="2"><b>Titolo</b></td>
<td><b>Citta'</b></td>
<td><b>Data</b></td>
<td><b>Categoria</b></td>
<td align="center"><b>Approva</b></td>
</tr>
<xsl:for-each select="activity">
<tr>
<td>
<xsl:choose>
<xsl:when test='floor( @status div 32 ) mod 2'><img src="/imgs/mela.gif"/></xsl:when>
<xsl:when test='floor( @status div 4 ) mod 2 and (@sexid="24" or @sexid="26")'><img src="/imgs/frag_m.gif"/></xsl:when>
<xsl:when test='floor( @status div 4 ) mod 2 and (@sexid="25" or @sexid="27")'><img src="/imgs/frag_f.gif"/></xsl:when>
<xsl:when test='floor( @status div 16 ) mod 2 and (@sexid="24" or @sexid="26")'><img src="/imgs/ananas_m.gif"/></xsl:when>
<xsl:when test='floor( @status div 16 ) mod 2 and (@sexid="25" or @sexid="27")'><img src="/imgs/ananas_f.gif"/></xsl:when>
<xsl:when test='@certified=1 and (@sexid="24" or @sexid="26")'><img src="/imgs/symbol_mc.gif"/></xsl:when>
<xsl:when test='@certified=1 and (@sexid="25" or @sexid="27")'><img src="/imgs/symbol_fc.gif"/></xsl:when>
<xsl:when test='@sexid="24" or @sexid="26"'><img src="/imgs/symbol_m.gif"/></xsl:when>
<xsl:when test='@sexid="25" or @sexid="27"'><img src="/imgs/symbol_f.gif"/></xsl:when>
</xsl:choose>
&#160;<a style="color:#006699;" href="/profileShow.aspx?userGuid={@userid}"><xsl:value-of select="@nick"/></a></td>
<!-- <td><xsl:value-of select="@email"/></td> -->
<td width="1%"><a href="/activityEdit.aspx?activityId={@activityid}"><img border="0" src="/imgs/modify.gif"/></a></td>
<td><a href="/activityShow.aspx?activityId={@activityid}"><xsl:value-of select="@title"/></a></td>
<td><xsl:value-of select="@place"/></td>
<td><xsl:value-of select="@gg"/>-<xsl:value-of select="@mm"/>-<xsl:value-of select="@aaaa"/>
<xsl:choose><xsl:when test='@radio="1197"'></xsl:when>
<xsl:when test='@radio="1198"'></xsl:when>
<xsl:when test='@radio="1199"'>&#160;(weekly)</xsl:when>
</xsl:choose>
</td>
<!--
<td><xsl:value-of select="@category"/></td>
<td align="center"><a href="/admin/activitiesWaiting4ApprovalStaff.aspx?activityId={@activityid}&amp;makeItPublic=2"><img border="0" src="/imgs/warning.gif"/></a>
&#160;<a href="/admin/activitiesWaiting4ApprovalStaff.aspx?activityId={@activityid}&amp;makeItPublic=1"><img border="0" src="/imgs/markedyes.gif"/></a></td>
-->




<form name="ActivityDelete{position()}" method="post" action="?activityId={@activityid}&amp;makeItPublic=2">
<input type="hidden" name="FORM_ID" value="activity"></input>
<input type="hidden" name="activityuserid" value="{@userid}"></input>
<input type="hidden" name="activitytitle" value="{@title}"></input>
<td align="center">
	<select class="body_10px" size="1" name="WHY">
	<option value="1">Pubblicita</option>
	<option value="2">Pierraggio</option>
	<option value="3">Evento staff</option>
	<option value="4">Poco chiaro</option>
	<option value="5">Evento simile</option>
	<option value="6">Non consentito</option>
	<option value="7">Errori </option>
	<option value="8">Polemico</option>
	<option value="9">Volgare</option>
	<option value="10">Altro utente</option>
	<option value="11">Forum/vacanza</option>
	<option value="12">Altro</option>
	</select>
<a href="javascript:document.ActivityDelete{position()}.submit();"><img border="0" src="/imgs/delete.gif"/></a>
</td>
</form>




<form name="ActivityDontApprove{position()}" method="post" action="?activityId={@activityid}&amp;makeItPublic=0">
<input type="hidden" name="FORM_ID" value="activity"></input>
<input type="hidden" name="activityuserid" value="{@userid}"></input>
<input type="hidden" name="activitytitle" value="{@title}"></input>
<td align="center">
<a href="javascript:document.ActivityDontApprove{position()}.submit();"><img border="0" src="/imgs/warning.gif"/></a>
</td>
</form>



<form name="ActivityApprove{position()}" method="post" action="?activityId={@activityid}&amp;makeItPublic=1">
<input type="hidden" name="FORM_ID" value="activity"></input>
<input type="hidden" name="activityuserid" value="{@userid}"></input>
<input type="hidden" name="activitytitle" value="{@title}"></input>
<td align="center">
<a href="javascript:document.ActivityApprove{position()}.submit();"><img border="0" src="/imgs/markedyes.gif"/></a>
</td>
</form>



</tr>
</xsl:for-each>
</table>
</xsl:template>

</xsl:stylesheet>